﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace EasyNet.Componets.Core.Http
{
    public interface IHttpClient
    {
        string Get(string url, Encoding encoding, Dictionary<string, string> headerList, ref CookieContainer cookieContainer);

        Task<string> GetAsync(string url, Encoding encoding, Dictionary<string, string> headerList, CookieContainer cookieContainer);

        string Post(string url, string body, string contentType, Encoding encoding, Dictionary<string, string> headerList, ref CookieContainer cookieContainer);

        Task<string> PostAsync(string url, string body, string contentType, Encoding encoding, Dictionary<string, string> headerList, CookieContainer cookieContainer);

        string Delete(string url, Encoding encoding, Dictionary<string, string> headerList, ref CookieContainer cookieContainer);

        string Update(string url, string body, string contentType, Encoding encoding, Dictionary<string, string> headerList, ref CookieContainer cookieContainer);

    }
}
